package lancs.mobilemedia.core.ui.controller.commands;

import lancs.mobilemedia.core.ui.controller.AbstractController;
import lancs.mobilemedia.core.ui.controller.AlbumController;
import lancs.mobilemedia.core.ui.controller.ControllerCommand;
import lancs.mobilemedia.core.ui.controller.ScreenSingleton;
import lancs.mobilemedia.core.util.Constants;


public class ResetAlbum implements ControllerCommand {

	public boolean execute(AbstractController controller) {
		System.out.println("<* BaseController.handleCommand() *> Reset Photo Album");			
		((AlbumController) controller).resetImageData();
	    ScreenSingleton.getInstance().setCurrentScreenName(Constants.ALBUMLIST_SCREEN);
		return true;
	}
}
